# -*- coding: utf-8 -*-
"""
@Time ： 2023/10/4 0004 9:03
@Auth ： zpt
@File ：custom_image_page.py
@IDE ：PyCharm
"""
import time
from Page.base_page import BasePage
from Page.image_build_page import ImageBuildPage
from Page.login_page import LoginPage
from Lib.readelement import Element
from Lib.log import log

image_build = Element('custom_image')


class CustomImagePage(BasePage):
    """镜像定制页面"""

    def login(self, url=None, name=None, password=None):
        """
        用户登录
        """
        login = LoginPage(self.driver)
        login.login(url, name, password)

    def select_first_pipeline(self):
        """选择流水线列表第一条"""
        try:
            self.click(image_build['first_pipeline'])
        except Exception as e:
            log.info("error: select first pipeline btn timeout")




